#include <bits/stdc++.h>
using namespace std;
int n;
int r[100005];
int read()
{
	int x=0,f=1;
	char c=getchar();
	while(c<'0'||c>'9')
	{
		if(c=='-')f=-1;
		c=getchar();
	}
	while(c>='0'&&c<='9')
	{
		x=(x<<1)+(x<<3)+(c^48);
		c=getchar();
	}
	return x*f;
}
void write(int x)
{
	if(x<0)
	{
		putchar('-');
		write(-x);
		return;
	}
	if(x<10)
	{
		putchar(x+'0');
		return;
	}
	write(x/10);
	putchar(x%10+'0');
	return;
}
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	n=read();
	for(int i = 1;i <= n;i++)
	{
		r[i]=read();
	}
	sort(r+1,r+n+1);
	int ans=n;
	for(int i = 1,j = 1;i <= n;i++)
	{
		while(r[j]<=r[i]&&j<=n)
		{
			j++;
		}
		if(r[j]>r[i])
		{
			ans--;
			j++;
		}
		else
		{
			break;
		}
	}
	write(ans);
	putchar('\n');
	return 0;
}